package com.alibaba.dubbo.common.header;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.dubbo.common.HeaderProvider;
import com.alibaba.dubbo.common.HeaderProvider2;

public class HeaderProviderImpl implements HeaderProvider, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected Map<String, String> headers;
	public HeaderProviderImpl( ){
	}
	
	public HeaderProviderImpl(HeaderProvider2 provider ){
		if(provider != null){
			this.headers = new HashMap<String, String>(provider.getHeaders());
		}
	}
	
	public HeaderProviderImpl(Map<String, String> Headers ){
		this.headers = new HashMap<String, String>(Headers);
	}

	@Override
	public Map<String, String> getHeaders() {
		return this.headers;
	}
	
	public void setHeaders(Map<String, String> headers){
		this.headers = headers;
	}


	 
}
